package core.objects;

import java.sql.Timestamp;

import core.objects.enums.NewsFeedEnum;

public class NewsFeedItem extends ObjectWithID {

	private NewsFeedEnum type = null;
	private String username = null;
	private String firstname = null;
	private String lastname = null;
	private int bookID = -1;
	private String bookName = null;
	private String commentUsername = null;
	private String commentfirstname = null;
	private String commentlastname = null;
	private int commentRating = 0;
	private String comment = null;
	private Timestamp startDate = null;
	
	/** supply 0 or any other id -- it does not matter here.
	 * we only extend ObjectWithID so we can be intergrated
	 * with database access interface and the likes */
	public NewsFeedItem(int id) {
		super(id);
	}
	
	public NewsFeedEnum getType() {
		return this.type;
	}

	public String getUsername() {
		return this.username;
	}

	public String getFirstname() {
		return this.firstname;
	}

	public String getLastname() {
		return this.lastname;
	}

	public int getBookID() {
		return this.bookID;
	}

	public String getBookName() {
		return this.bookName;
	}

	public String getCommentUsername() {
		return this.commentUsername;
	}

	public String getCommentfirstname() {
		return this.commentfirstname;
	}

	public String getCommentlastname() {
		return this.commentlastname;
	}

	public int getCommentRating() {
		return this.commentRating;
	}

	public String getComment() {
		return this.comment;
	}
	
	public Timestamp getStartDate() {
		return this.startDate;
	}

	public void setType(NewsFeedEnum type) {
		this.type = type;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public void setBookID(int bookID) {
		this.bookID = bookID;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public void setCommentUsername(String commentUsername) {
		this.commentUsername = commentUsername;
	}

	public void setCommentfirstname(String commentfirstname) {
		this.commentfirstname = commentfirstname;
	}

	public void setCommentlastname(String commentlastname) {
		this.commentlastname = commentlastname;
	}

	public void setCommentRating(int commentRating) {
		this.commentRating = commentRating;
	}
	
	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}

	@Override
	public Object[] toObjectArray() {
		return null;
	}

}
